package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IPropertyConfigDao;
import com.guoxue.domain.PropertyConfigVo;
import com.guoxue.service.IPropertyConfigService;
@Service("propertyConfigService")
public class PropertyConfigServiceImpl implements IPropertyConfigService {
	
	@Resource
	private IPropertyConfigDao propertyConfigDao;

	@Override
	public void savePropertyConfig(PropertyConfigVo pc) {
		propertyConfigDao.savePropertyConfig(pc);
	}

	@Override
	public List<PropertyConfigVo> getPropertyConfigList() {
		return propertyConfigDao.getPropertyConfigList();
	}

	@Override
	public void deleteProperty(int id) {
		propertyConfigDao.deleteProperty(id);
	}

	@Override
	public PropertyConfigVo getPropertyConfigById(int propertyConfigId) {
		return propertyConfigDao.getPropertyConfigById(propertyConfigId);
	}

}
